<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>公益收益</title>
<link rel="stylesheet" type="text/css"
	href="<?=base_url()?>public/css/style.css">
<script type="text/javascript"
	src="<?=base_url()?>public/js/jq.1.12.4.js"></script>
<script type="text/javascript" src="<?=base_url()?>public/js/js.js"></script>
<style type="text/css">
#page{height:32px;line-height:32px;margin-top:15px;margin-bottom:15px;text-align:left;}
#page a{background:#fff;border-radius:5px;float:left;display:block;padding:0 12px;line-height:32px;border:1px solid #ddd;margin-right:5px;font-size:12px;font-weight:bold;color:#444;}
#page a:hover{background:#f6f6f6}
#page a.cur{color:red;background:#444;border:1px solid #444;color:#fff;}
#page a.noborder{border:none;margin:0 2px;}


</style>
</head>
<body>
	<!-- 头部 -->
    <?php echo $menu?>
    <!-- 主体 -->
	<div class="main clearfix">
        <?php echo $left?>
		<div class="content">
			<div class="con">
				<div class="bikuang">
					<div class="right_title">
						<span>公益收益中心&nbsp;&nbsp; -<span style="color: #1d3e00; margin: 0;">&nbsp;&nbsp;公益推广钱包明细</span></span>
					</div>
					<div class="person2">
						<table cellpadding="0" cellspacing="0">
							<tr>
								<th>公益编号</th>
								<th>公益账号</th>
								<th>姓名</th>
								<th>时间</th>
								<th>合作金额</th>
								<th>收益</th>
								<th>推广人</th>
							</tr>
							
							<?php foreach($data_list as $datalist): ?>
	                             <tr>
									<td><?php echo $datalist['bianhao'] ?></td>
									<td><?php echo substr_replace($datalist['user_account'],'***',3,3) ?></td>
									<td><?php echo $datalist['user_name'] ?></td>
									<td><?php echo date('Y-m-d H:i:s',$datalist['sq_time']) ?></td>
									<td><?php echo $datalist['money'] ?></td>
									<td><?php echo $datalist['tg_money'] ?></td>
									<td><?php echo $datalist['up_account'] ?></td>
								</tr>
                            <?php endforeach; ?>	
							
						</table>
						<?php echo $multi;?>
					</div>

				</div>
			</div>
		</div>
	</div>
	</div>
	<script type="text/javascript">
		$(".person2 table tr").each(function(i){
			if(i>0){
				var account=$(this).children("td").eq(1).html();
				var people=$(this).children("td").eq(6).html();
				$(this).children("td").eq(1).html(account.slice(0,2)+"***"+account.slice(5));
				//$(this).children("td").eq(6).html(people.slice(0,2)+"***"+people.slice(5));
			}
		});
	</script>
</body>
</html>
